import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.*;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
public class Book extends JFrame implements ActionListener{
    JLabel jLabel1,jLabel2,jLabel3;
    JTextField jTextField1,jTextField2,jTextField3;
    JButton jButton1,jButton2,jButton3,jButton4;
    Connection connection=null;
    Statement statement=null;
    public Book(String title){
        super(title);
        jLabel1=new JLabel("书号：");
        jLabel2=new JLabel("书名：");
        jLabel3=new JLabel("作者：");
        jTextField1=new JTextField();
        jTextField1.setEditable(false);
        jTextField2=new JTextField();
        jTextField3=new JTextField();
        jButton1=new JButton("查询");
        jButton2=new JButton("下一条");
        jButton3=new JButton("增加");
        jButton4=new JButton("修改");
        jButton1.addActionListener(this);
        jButton2.addActionListener(this);
        jButton3.addActionListener(this);
        jButton4.addActionListener(this);
    }
}